import request from '@/axios'
import { CallType, OperationType } from './types'

export const getOperationListApi = (params: any) => {
  return request.get<OperationType[]>({ url: '/record/operations', params })
}

export const getCallListApi = (params: any) => {
  return request.get<CallType[]>({ url: '/record/calls', params })
}

export const addCallApi = (data) => {
  return request.post({ url: '/record/call', data })
}

export const putCallApi = (data) => {
  return request.put({ url: '/record/call', data })
}
